package com.zwb.aiwebsite.service;

import com.zwb.aiwebsite.dto.ProductDTO;
import com.zwb.aiwebsite.entity.product.TbProduct;
import com.zwb.aiwebsite.entity.product.TbProductType;
import org.springframework.ui.Model;

import java.util.List;

/**
 * @author 2825075112@qq.com
 */
public interface TbProductService {
    void addProductType(TbProductType tbProductType);

    List<TbProductType> getAllProductType();

    void delProductType(Integer id);

    List<TbProduct> getAllProduct();

    void delProduct(Integer id);

    void addProduct(ProductDTO productDTO);

    void productMenu(Integer id, Model model);

    List<ProductDTO> getAllProductInfo();


    void productInfoPage(Model model, Integer id);
}
